import { ViteDevServer } from 'vite';
import { ComponentType } from 'react';
import { RenderToPipeableStreamOptions } from 'react-dom/server';
import { ServerRenderContextValue } from '@hubspot/cms-components';
import { EnvironmentConfig } from '@hubspot/cms-components/config';
import { InlineAsset, StaticAsset } from '@hubspot/cms-js-internal';
export declare type RenderResult = {
    html: string;
    inlineAssets?: InlineAsset[];
    cssNeeded: string;
    renderContext: ServerRenderContextValue;
};
declare function renderComponentWithCSS(viteServer: ViteDevServer, componentPath: string, Component: ComponentType, propsAndExtraDeps: any, pageUrl: string, entryPointBasePath: string, contextOptions: any, environmentConfig: EnvironmentConfig, renderOptions: RenderToPipeableStreamOptions, getServerSideProps?: Function, modifyHtmlCallback?: (html: string, renderContext: ServerRenderContextValue, staticAssets: StaticAsset[]) => string): Promise<RenderResult>;
export default renderComponentWithCSS;
